package org.cycuchy.hp.components {
	
	import mx.controls.ToolTip;
	import mx.styles.CSSStyleDeclaration;
	import mx.styles.StyleManager;

	public class HPToolTip extends ToolTip {
		
//		private static const styles:Array = [
//			"fontFamily", "fontSize", "color", "backgroundColor", "backgroundAlpha", "cornerRadius", "borderSkin"];
		
		public function HPToolTip(selector:String) {
			var css:CSSStyleDeclaration = StyleManager.getStyleDeclaration(selector);
			trace("css: " + css);
			if (css) {
				styleName = css;
//				for each (var style:String in styles) {
//					setStyle(style, css.getStyle(style));
//					trace(css.getStyle(style));
//				}
			}
		}
		
//		public function get text():String {
//			return "";
//		}
//		
//		public function set text(value:String):void {
//		}		
//		
//		
//		public function setBorder(border:IFlexDisplayObject):void {
//	        if (!border)
//	        {
//				var border:IFlexDisplayObject;
//	            var borderClass:Class = getStyle("borderSkin");
//	            border = new borderClass();
//	            if (border is ISimpleStyleClient)
//	                ISimpleStyleClient(border).styleName = this;
//	            addChild(DisplayObject(border));
//	        }
//		}
		
	}
	
}